package com.kgcx.push.service;

import com.kgcx.push.entity.User;
import com.kgcx.push.mapper.UserMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 何凯
 * @version 0.1
 * @description
 * @time 2018/5/8 9:19
 * @since 0.1
 */
@Service
public class UserService {
    private static final Logger log = LoggerFactory.getLogger(UserService.class);

    @Autowired
    private UserMapper userMapper;

    public User queryUserById(int id) {
        log.debug("id++++++++++++++++++++++"+id);
        return userMapper.queryUserById(id);
    }

    public List<User> queryUserList(User query) {
        return userMapper.queryUserList(query);
    }
}
